{extend name="common@admin_base" /}

{block name="head_extends"}
<script type="application/javascript">
    layui.use(['jquery', 'form'], function(){

    });
</script>
{/block}
{block name="body"}

<div class="layui-container">
    <div class="layui-row">
        <div class="layui-col-md6 layui-col-md-offset1">
            <fieldset class="layui-elem-field layui-field-title"><legend>权限树扩展分享</legend></fieldset>
            <!-- 此扩展能递归渲染一个权限树，点击深层次节点，父级节点中没有被选中的节点会被自动选中，单独点击父节点，子节点会全部 选中/去选中 -->
                <form class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">菜单名称</label>
                        <div class="layui-input-block">
                            <input class="layui-input" type="text" value="{$menu.name}" readonly>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">菜单路径</label>
                        <div class="layui-input-block">
                            <input class="layui-input" type="text" value="{$menu.url}" readonly>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">上级目录</label>
                        <div class="layui-input-block">
                            <select name="pid" lay-verify="required" disabled>
                                <option value="">请选择</option>
                                <option value="0"{if condition="0 == $menu.pid"}selected{/if}>根目录</option>
                                {volist name="pmenus" id="pmenu"}
                                <option value="{$pmenu.id}" {if condition="$pmenu.id == $menu.pid"} selected {/if}>{$pmenu.name}</option>
                                {/volist}
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">创建者</label>
                        <div class="layui-input-block">
                            <input class="layui-input" type="text" value="{$menu.getCreateUser.nickname}" readonly>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">菜单类型</label>
                        <div class="layui-input-block">
                            <select class="layui-input" value="{$menu.typeText}" disabled>
                                <option value="1"{if condition="1 == $menu.type"} selected {/if}>管理菜单</option>
                                <option value="2"{if condition="2 == $menu.type"} selected {/if}>前端菜单</option>
                            </select>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">菜单状态</label>
                        <div class="layui-input-block">

                            <select class="layui-input" value="{$menu.flagText}" disabled>
                                <option value="10"{if condition="10 == $menu.flag"} selected {/if}>不显示</option>
                                <option value="20"{if condition="20 == $menu.flag"} selected {/if}>显示置灰</option>
                                <option value="30"{if condition="30 == $menu.flag"} selected {/if}>显示标新</option>
                                <option value="99"{if condition="99 == $menu.flag"} selected {/if}>正常显示</option>
                            </select>
                        </div>
                    </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">创建时间</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" value="{$menu.createTime}" readonly>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">上次更新时间</label>
                    <div class="layui-input-block">
                        <input class="layui-input" type="text" value="{$menu.updateTime}" readonly>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>


{/block}